  $('.main-centerRight-sigh li').mousemove(function(){
        $(this).children("img").attr("src","../../themes/v1.0/images/ccc1.png");
        $(this).children(".sigh-alert").show();
    })
    $('.main-centerRight-sigh li').mouseout(function(){
        $(this).children("img").attr("src","../../themes/v1.0/images/ccc.png");
        $(this).children(".sigh-alert").hide();

    })
    $(".lietou-card").click(function(){
        $(".lietou-card-modal").show();
    })

 $(".details-evaluate").click(function(){
        $(".modall-back-cc").show();
        $(this).hide();
    })
    $(".modal-close").click(function(){
        $(".details-evaluate").show();
    })

  $(" .checkbox ").click(function(){

        //console.log( $(this).parent().parent("tr").index())//?????????index
//    ???
        var url=$(this).attr("src");
        //console.log(url);
        if(url=="../../themes/v1.0/images/green_yes1.png"){
            $(this).attr("src","../../themes/v1.0/images/green_yes.png");
        }else{
            $(this).attr("src","../../themes/v1.0/images/green_yes1.png");
        }
    if($(this).attr('data-type') == 1)
    {
        $(this).attr('data-type',0);
    }else
    {
        $(this).attr('data-type',1);
    }

    });

$('.modal-close').on('click',function(){
    $('.modall-back').hide();
})

/**
 * 收藏或取消收藏
 */
$('.collec').on('click',function(){
    var hid = $(this).data('hid');
    var type = $(this).data('type');
    $.post(
        'collec.html',
        {'hid':hid,'type':type,'_csrf':$('.request-csrf').val()},
        function(res)
        {
            res = eval('('+res+')');
            if(res.code == 400)
            {
                alert(res.msg);
            }else{
                location.reload();
            }
        });
});





$('.sure').on('click',function(){
    var score = $('.eval:checked').attr('data-sta');
    var type = $('.checkbox').attr('data-type');
    var tongzhi = $('.tongzhi').attr('data-type');
    var id = $(this).attr('data-id');
    var reason = $('.reason').val();

    $.post(
        'cancel.html',
        {'score':score,'type':type,'id':id,'reason':reason,'tongzhi':tongzhi,'_csrf':$('.request-csrf').val()},
        function(res)
        {
            res = eval('('+res+')');
            if(res.code == 400)
            {
                alert(res.msg);
            }else{
                location.href="index.html";
            }

        });

    return false;
    // alert(1);
});

